package com.zn.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * Created by yinjiawei on 2018/8/8.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Response {

    @JsonProperty("result")
    private SinaRemainderDayResult result;

    @JsonProperty("dayType")
    private Integer dayType;

    @JsonProperty("week")
    private Integer week;

    @JsonProperty("result_flag")
    private String resultFlag;

    @JsonProperty("result_message")
    private String resultMessage;

    @JsonProperty("order_num")
    private String orderNum;

    @JsonProperty("url")
    private String url;

    @JsonProperty("data")
    private List<PayMethodVo> data;

    @JsonProperty("tran_time")
    private String tranTime;

    @JsonProperty("trade_no")
    private String tradeNo;

    @JsonProperty("resCode")
    private String resCode;


    public Integer getDayType() {
        return dayType;
    }

    public void setDayType(Integer dayType) {
        this.dayType = dayType;
    }

    public Integer getWeek() {
        return week;
    }

    public void setWeek(Integer week) {
        this.week = week;
    }

    public String getResultFlag() {
        return resultFlag;
    }

    public void setResultFlag(String resultFlag) {
        this.resultFlag = resultFlag;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<PayMethodVo> getData() {
        return data;
    }

    public void setData(List<PayMethodVo> data) {
        this.data = data;
    }

    public String getTranTime() {
        return tranTime;
    }

    public void setTranTime(String tranTime) {
        this.tranTime = tranTime;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public boolean isSuccess() {
        return "0".equals(resultFlag);
    }

    public SinaRemainderDayResult getResult() {
        return result;
    }

    public void setResult(SinaRemainderDayResult result) {
        this.result = result;
    }

    public String getResCode() {
        return resCode;
    }

    public void setResCode(String resCode) {
        this.resCode = resCode;
    }

    @Override
    public String toString() {
        return "Response{" +
                "result=" + result +
                ", dayType=" + dayType +
                ", week=" + week +
                ", resultFlag='" + resultFlag + '\'' +
                ", resultMessage='" + resultMessage + '\'' +
                ", orderNum='" + orderNum + '\'' +
                ", url='" + url + '\'' +
                ", data=" + data +
                ", tranTime='" + tranTime + '\'' +
                ", tradeNo='" + tradeNo + '\'' +
                ", resCode='" + resCode + '\'' +
                '}';
    }
}
